////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2012 Kentaro Sekimoto  All rights reserved.
////////////////////////////////////////////////////////////////////////////

#ifndef FM4_H_
#define FM4_H_

#ifdef MB9BF568R
#include "mb9b560r.h"
#else
#error "CPU type not defined. Please define MB9BF568R"
#endif

#include "FM4_GPIO/FM4_GPIO.h"

#ifndef BIT_SET
#define BIT_SET 1
#endif
#ifndef BIT_CLR
#define BIT_CLR 0
#endif
#ifndef REG_R
#define REG_R(reg)          (reg)
#endif
#ifndef REG_W
#define REG_W(reg, value)   ((reg) = (value))
#endif

void CPU_INTC_Priority(UINT32 Irq_Index, UINT32 Irq_Pri);

#endif /* FM4_H_ */
